$(document).ready(function(){
	$("#submit").click(function(){
		//alert($('form[name="register"]').serialize());
		var form = $('form[name="register"]').serializeArray();
		form = H.toJson(form);
		console.log(form);
		//alert(H.ROOT+'guest.php');return;
		$.post(H.ROOT+'guest.php',{model:"register",form:form,uid:Math.random()},
		//$.post('/_joshua/sysFile/guest.php',{model:"register",form:form,uid:Math.random()},
			function(data){
				alert(data);
		});
		//alert($('form[name="register"]').serializeArray());
	});
});